package com.happy.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;

@TableName ("option_info")
public class OptionEntity extends BaseEntity {

    @TableId (value = "optionId", type = IdType.AUTO)
    private Integer optionId;
    @TableField ("subjectId")
    private Integer subjectId;
    @TableField ("optionContent")
    private String optionContent;
    @TableField ("createTime")
    private Date createTime;
    @TableField ("changeTime")
    private Date changeTime;
    @TableField ("isUsed")
    private Integer isUsed;

    public Integer getOptionId () {
        return optionId;
    }

    public void setOptionId (Integer optionId) {
        this.optionId = optionId;
    }

    public Integer getSubjectId () {
        return subjectId;
    }

    public void setSubjectId (Integer subjectId) {
        this.subjectId = subjectId;
    }

    public String getOptionContent () {
        return optionContent;
    }

    public void setOptionContent (String optionContent) {
        this.optionContent = optionContent;
    }

    public Date getCreateTime () {
        return createTime;
    }

    public void setCreateTime (Date createTime) {
        this.createTime = createTime;
    }

    public Date getChangeTime () {
        return changeTime;
    }

    public void setChangeTime (Date changeTime) {
        this.changeTime = changeTime;
    }

    public Integer getIsUsed () {
        return isUsed;
    }

    public void setIsUsed (Integer isUsed) {
        this.isUsed = isUsed;
    }

    @Override
    public String toString () {
        return "OptionEntity{" +
                "optionId=" + optionId +
                ", subjectId=" + subjectId +
                ", optionContent='" + optionContent + '\'' +
                ", createTime=" + createTime +
                ", changeTime=" + changeTime +
                ", isUsed=" + isUsed +
                '}';
    }
}
